package com.luxsoft.em2.ui.local;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


import com.luxsoft.em2.EM2ServiceLocator;
import com.luxsoft.siipap.service.KernellSecurity;
import com.luxsoft.siipap.swing.AbstractApplicationStarter;

public class EM2Local extends AbstractApplicationStarter{
	
	@Override
	protected String[] getContextPaths() {
		return new String[]{				
				"config/local/em2-local-ui-context.xml"
				,"config/local/em2-local-actions-context.xml"
		};
	}
	
	protected void configureActions(){
		super.configureActions();
		//EM2ServiceLocator.getInstance();
	}
	
	@Override
	protected ApplicationContext createApplicationContext() {
		return new ClassPathXmlApplicationContext(
				getContextPaths()
				);
		
	}
	
	public static void main(String[] args) {
		System.setProperty(KernellSecurity.KERNELL_ENABLED_PROPERTY, "false");
		new EM2Local().start();
	}

}
